<template>
  <div>
<div class="center">
  <el-container class="header">
    <el-header style="line-height: 50px;">欢迎来到您的订单中心</el-header>
  </el-container>
  <el-container style="border: 1px solid #eee">
    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <el-menu :default-openeds="['1', '3']">
        <el-submenu index="1" style="text-align: center">
          <template slot="title">订单中心</template>
          <el-menu-item-group>
            <el-menu-item index="1-1" @click="$router.push('/center/myOrder')">我的订单</el-menu-item>
            <el-menu-item index="1-2" @click="$router.push('/center/groupOrder')">团购订单</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>
  <el-main>    <router-view></router-view></el-main>
  </el-container>
</div>
  </div>
</template>

<script>
import groupOrder from '../../pages/center/groupOrder'
import myOrder from '../../pages/center/myOrder'
export default {
  name: "center",
  components:{
    groupOrder,
    myOrder
  }
}
</script>

<style scoped lang="less">
.center{
  width: 1200px;
  margin: 0 auto;
}
.header{
  height: 50px; border: 1px solid #eee;
  background-color: rgb(238, 241, 246);
  text-align: center;
}
</style>
